# Contributor: Klemens Nanni <kl3@posteo.org>
# Maintainer: Celeste <cielesti@protonmail.com>
maintainer="Celeste <cielesti@protonmail.com>"
pkgname=lzlib
pkgver=1.14
pkgrel=1
pkgdesc="Library for the lzip compression file format"
url="https://www.nongnu.org/lzip/lzlib.html"
arch="all"
license="GPL-2.0-or-later"
subpackages="$pkgname-doc $pkgname-dev"
source="https://download.savannah.gnu.org/releases/lzip/lzlib/lzlib-$pkgver.tar.gz"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		--disable-static
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
1582b99149af18ea119f015a9dbf224aa2ebc78240432415b2da20bd5a4e4dc3fdea2489789bc581bdccdba6f4eab13c69c5801e8a43ab9a829c2eb9b801797f  lzlib-1.14.tar.gz
"
